package org.tote.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class ErrorController implements BaseController {

	private static final String ERROR_PAGE = "errorPage";  
	
	@RequestMapping(value = "/errors/400")
	public String handle400() {
		return ERROR_PAGE;
	}

	@RequestMapping(value = "/errors/403")
	public String handle403() {
		return ERROR_PAGE;
	}

	@RequestMapping(value = "/errors/404", method = RequestMethod.GET)
	public String handle404() {
		return ERROR_PAGE;
	}

	@RequestMapping(value = "/errors/405")
	public String handle405() {
		return ERROR_PAGE;
	}

	@RequestMapping(value = "/errors/500")
	public String handle500() {
		return ERROR_PAGE;
	}

}
